-- GENERATED SPELL FOR [Sludginn] --


function spell0_14433(pUnit, Event) --@Dark Sludge,n/a--
pUnit:FullCastSpellOnTarget(3335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14433', 5000, 1)
end

function spell1_14433(pUnit, Event) --@Leech Poison,Drain--
pUnit:FullCastSpellOnTarget(3358,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_14433', 40000, 1)
end

function Sorts_14433(pUnit, Event)
local choix_sorts_14433 = math.random(0, 1)
if choix_sorts_14433 == 0 then
pUnit:RegisterEvent('spell0_14433', 1, 1)
end
if choix_sorts_14433 == 1 then
pUnit:RegisterEvent('spell1_14433', 1, 1)
end
end

function mob14433_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14433', math.random(1500, 3000), 1)
end

function mob14433_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14433_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14433_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14433, 1, 'mob14433_Action')
RegisterUnitEvent(14433, 2, 'mob14433_Leave')
RegisterUnitEvent(14433, 3, 'mob14433_Kill')
RegisterUnitEvent(14433, 4, 'mob14433_Die')
